
package com.google.project.client.Service;

import java.util.List;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.project.shared.ProjectDTO;
import com.google.project.shared.ProjectStaffDTO;
import com.google.project.shared.TaskRequireDTO;
import com.google.project.shared.UsersDTO;


@RemoteServiceRelativePath("projectStaffService")
public interface ProjectStaffService extends RemoteService {
	ProjectStaffDTO addStaff(ProjectStaffDTO staff);

	List<ProjectStaffDTO> getProjectStaffList(String projectId);

	ProjectStaffDTO addStaff(UsersDTO userDTO, ProjectStaffDTO projectStaffDTO);

	void deleteProjectStaff(String id);
	
	List<ProjectStaffDTO> getAllPrjStaff();

	ProjectStaffDTO addStaff(String projectId, ProjectStaffDTO projectStaffDTO);

	void addStaffList(List<UsersDTO> userDTOList, ProjectDTO projectChoosed,TaskRequireDTO taskRequireDTO);
	
	void updateProjectStaff(List<ProjectStaffDTO> projectStaffDTOList, List<UsersDTO> usersDTOList, int regisOrRemoveFlag);
	
	List<ProjectStaffDTO> searchPJWithTime(Long fromDate, Long toDate);

}
